class Questionnaire < ActiveRecord::Base
  validates_presence_of :name

  has_many :included_questions
  has_many :questions, :through => :included_questions
  has_and_belongs_to_many :categories
  belongs_to :user, :foreign_key => :creator_id
  has_many :evaluations
  has_many :users, :through => :evaluations
end